package com.ruoyi.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.service.mapper.ServiceComboMapper;
import com.ruoyi.service.domain.ServiceCombo;
import com.ruoyi.service.service.IServiceComboService;

/**
 * 服务套餐Service业务层处理
 * 
 * @author ZDL
 * @date 2024-10-21
 */
@Service
public class ServiceComboServiceImpl implements IServiceComboService 
{
    @Autowired
    private ServiceComboMapper serviceComboMapper;

    /**
     * 查询服务套餐
     * 
     * @param comboId 服务套餐主键
     * @return 服务套餐
     */
    @Override
    public ServiceCombo selectServiceComboByComboId(Long comboId)
    {
        return serviceComboMapper.selectServiceComboByComboId(comboId);
    }

    /**
     * 查询服务套餐列表
     * 
     * @param serviceCombo 服务套餐
     * @return 服务套餐
     */
    @Override
    public List<ServiceCombo> selectServiceComboList(ServiceCombo serviceCombo)
    {
        return serviceComboMapper.selectServiceComboList(serviceCombo);
    }

    /**
     * 新增服务套餐
     * 
     * @param serviceCombo 服务套餐
     * @return 结果
     */
    @Override
    public int insertServiceCombo(ServiceCombo serviceCombo)
    {
        return serviceComboMapper.insertServiceCombo(serviceCombo);
    }

    /**
     * 修改服务套餐
     * 
     * @param serviceCombo 服务套餐
     * @return 结果
     */
    @Override
    public int updateServiceCombo(ServiceCombo serviceCombo)
    {
        return serviceComboMapper.updateServiceCombo(serviceCombo);
    }

    /**
     * 批量删除服务套餐
     * 
     * @param comboIds 需要删除的服务套餐主键
     * @return 结果
     */
    @Override
    public int deleteServiceComboByComboIds(Long[] comboIds)
    {
        return serviceComboMapper.deleteServiceComboByComboIds(comboIds);
    }

    /**
     * 删除服务套餐信息
     * 
     * @param comboId 服务套餐主键
     * @return 结果
     */
    @Override
    public int deleteServiceComboByComboId(Long comboId)
    {
        return serviceComboMapper.deleteServiceComboByComboId(comboId);
    }
}
